<?php

namespace JsonLowCode\Form\Traits;

trait HasPlaceholder
{
    /**
     * 设置placeholder
     * @param string|null $placeholder
     * @return $this
     */
    public function placeholder(string $placeholder = null): static
    {
        $this->placeholder = $placeholder;
        return $this;
    }
}
